package com.example.entity;

import lombok.Data;

import java.time.LocalDate;

/**
 * 学生
 */

@Data
public class Student extends Account {
    private Integer id;
    private String username;
    private String password;
    private String name;
    private String sex;
    private LocalDate birthday;
    private String email;
    private LocalDate lastLoginTime;
    private Integer classId;

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    private String role;

    public Student() {
    }

    public Student(Integer id, String username, String password, String name, String sex, LocalDate birthday, String email, LocalDate lastLoginTime, int classId, String role) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.lastLoginTime = lastLoginTime;
        this.classId = classId;
        this.role = role;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public LocalDate getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(LocalDate lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

}
